﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplyJoinPartyEdit.aspx.cs" Inherits="JoinParty.admin.ApplyJoin.ApplyJoinPartyEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        .photo {
            height: 70px;
            line-height: 100px;
            overflow: hidden;
        }

            .photo img {
                height: 100px;
                vertical-align: middle;
            }

        .textcolor span {
            color: red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hdStype" runat="server" Value="y" />
        <asp:HiddenField ID="hdEnable" runat="server" Value="1" />
        <asp:HiddenField ID="hdApplyStatus" runat="server" Value="0" />
        <asp:HiddenField ID="hdApplyID" runat="server" Value="" />
        <asp:HiddenField ID="hdLoginID" runat="server" Value="" />
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="FormBase" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:Button ID="btnSubmit" runat="server" CssClass="marginr" OnClick="btnSubmit_Click"
                            Text="提交">
                        </f:Button>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Panel ID="panelAll" runat="server" Layout="VBox" ShowBorder="false" ShowHeader="false" Height="500px">
                    <Items>
                        <f:TabStrip ID="TabStrip1" ShowBorder="false" TabPosition="Top" AutoScroll="false"
                            EnableTabCloseMenu="false" ActiveTabIndex="0" Margin="0 auto" BodyPadding="2px"
                            runat="server">
                            <Tabs>
                                <f:Tab Title="基础信息" BodyPadding="5px" Layout="VBox" runat="server">
                                    <Items>
                                        <f:Form BodyPadding="10px" ID="FormBase" runat="server" Title="" ShowBorder="false" ShowHeader="false">
                                            <Rows>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TriggerBoxPicker Label="姓名" LabelAlign="right" LabelWidth="120px" OnTextChanged="ppUser_TextChanged" AutoPostBack="true"
                                                            runat="server" ID="ppUser" ShowTrigger1="true" ShowTrigger2="true"
                                                            EnableEdit="false" WindinsTitle="选择人员"
                                                            WindinsHeight="450px" EnableTrigger1PostBack="false"
                                                            WindinsWidth="700px" WindinsUrl="../../../Share/Picker/MemberSinglePicker.aspx"
                                                            Trigger1Icon="Clear">
                                                        </f:TriggerBoxPicker>
                                                        <f:DropDownList LabelWidth="120px" runat="server" ID="ddlGrean" FocusOnPageLoad="true" Label="性别" LabelAlign="right">
                                                            <f:ListItem Text="男" Value="0" Selected="true" />
                                                            <f:ListItem Text="女" Value="1" />
                                                        </f:DropDownList>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" runat="server" ID="txtBeforeName" Required="true" ShowRedStar="true" Label="曾用名" Hidden="true"></f:TextBox>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" runat="server" ID="txtNature" Required="true" ShowRedStar="true" Label="本人成分" Hidden="true"></f:TextBox>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" runat="server" ID="txtIDCard" Required="true" ShowRedStar="true" Label="身份证号码"></f:TextBox>
                                                        <f:DatePicker LabelWidth="120px" LabelAlign="right" Label="出生日期" ID="dtBirthday" runat="server" Required="true" DateFormatString="yyyy-MM-dd" EmptyText="请选择出生日期" ShowRedStar="true"></f:DatePicker>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="民族" runat="server" ID="txtNation" Required="true" ShowRedStar="true"></f:TextBox>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="籍贯" runat="server" ID="txtNativePlace" Required="true" ShowRedStar="true"></f:TextBox>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="居住地址" runat="server" ID="txtAddress" Required="true" ShowRedStar="true"></f:TextBox>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="联系电话" runat="server" ID="txtMobileNo" Required="true" ShowRedStar="true"></f:TextBox>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="邮箱" runat="server" ID="txtEmail" Required="true" ShowRedStar="true"></f:TextBox>
                                                        <f:DropDownList LabelWidth="120px" LabelAlign="right" runat="server" ID="ddlEducation" FocusOnPageLoad="true" Label="文化程度">
                                                            <f:ListItem Text="大专以下" Value="大专以下" />
                                                            <f:ListItem Text="大专" Value="大专" />
                                                            <f:ListItem Text="本科" Value="本科" Selected="true" />
                                                            <f:ListItem Text="硕士" Value="硕士" />
                                                            <f:ListItem Text="博士" Value="博士" />
                                                        </f:DropDownList>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="QQ号码" runat="server" ID="txtQQNo" Required="true" ShowRedStar="true"></f:TextBox>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="微信号" runat="server" ID="txtWeiXinNo" Required="true" ShowRedStar="true"></f:TextBox>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="工作所在地" runat="server" ID="txtWorkAddress" Required="true" ShowRedStar="true"></f:TextBox>
                                                        <f:TextBox LabelWidth="120px" LabelAlign="right" Label="学习/工作单位" runat="server" ID="txtWorkUnit" Required="true" ShowRedStar="true"></f:TextBox>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:TriggerBoxPicker Label="接受申请党支部" LabelAlign="right" LabelWidth="120px"
                                                            runat="server" ID="ppBranch" ShowTrigger1="true" ShowTrigger2="true"
                                                            EnableEdit="false" WindinsTitle="选择所属组织"
                                                            WindinsHeight="450px" EnableTrigger1PostBack="false"
                                                            WindinsWidth="700px" WindinsUrl="../../../Share/Picker/BranchToMemberPicker.aspx"
                                                            Trigger1Icon="Clear">
                                                        </f:TriggerBoxPicker>
                                                        <f:DatePicker LabelWidth="120px" LabelAlign="right" Label="递交申请书时间" ID="dtApplyTime" runat="server" Required="true" DateFormatString="yyyy-MM-dd" EmptyText="请选择递交申请书时间" ShowRedStar="true"></f:DatePicker>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:Label LabelWidth="120px" LabelAlign="right" runat="server" CssClass="textcolor" Text="(可根据你的工作所在地、居住地址找最近的党支部提交你的入党申请)"></f:Label>
                                                    </Items>
                                                </f:FormRow>

                                            </Rows>
                                        </f:Form>
                                    </Items>
                                </f:Tab>
                                <f:Tab Title="入党申请书" BodyPadding="5px" Layout="VBox" runat="server">
                                    <Items>
                                        <f:Label LabelWidth="120px" LabelAlign="right" Label="工作指引" ID="lbWorkGuide" runat="server" EncodeText="false"></f:Label>
                                        <f:HtmlEditor ID="heContent" runat="server" Label="申请书内容" LabelWidth="120px" LabelAlign="right"></f:HtmlEditor>
                                    </Items>
                                </f:Tab>
                                <f:Tab Title="头像设置" BodyPadding="5px" Layout="VBox" runat="server">
                                    <Items>
                                        <f:Form BodyPadding="10px" ID="Form4"
                                            runat="server" Title="" ShowBorder="false" ShowHeader="false">
                                            <Rows>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:Image ID="imgPhoto" CssClass="photo" ImageUrl="~/Content/icon/blank1.png" ImageWidth="200" ShowEmptyLabel="true" runat="server">
                                                        </f:Image>
                                                    </Items>
                                                </f:FormRow>
                                                <f:FormRow>
                                                    <Items>
                                                        <f:FileUpload runat="server" ID="filePhoto" ShowRedStar="false" ShowEmptyLabel="true"
                                                            ButtonText="上传个人头像" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                                            AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
                                                        </f:FileUpload>
                                                    </Items>

                                                </f:FormRow>
                                            </Rows>
                                        </f:Form>
                                        <f:HiddenField Text="" ID="hdFileId" runat="server"></f:HiddenField>
                                    </Items>
                                </f:Tab>
                            </Tabs>
                        </f:TabStrip>
                    </Items>
                </f:Panel>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
